<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/22
 * Time: 21:24
 */
class Brand_model extends CI_Model{
    const TBL_CATE = "brand";

    public function list_brand(){
        $query = $this->db->get(self::TBL_CATE);
        return $query->result_array();
    }
    //插入单条数据
    public function add_oneBrand($data){
        return $this->db->insert(self::TBL_CATE,$data);
    }
}